home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0295.lzh / AMOSLIST / text0005.txt < prev    next >
Encoding:
Text File  |  1995-03-01  |  1019 b   |  26 lines

  1. On Tue, 31 Jan 1995, stud.ass. wrote:
  2.  
  3. > > How does recursive programming work? Suppose I wanted to make a 
  4. > > MineSweeper clone, how would I let the computer show all the
  5. > > fields that aren't surrounded by a bomb whenever I hit a field
  6. > > which is not surrounded by a bomb? 
  7. > > Mind, I'm not trying to make a clone here, I just thought it's
  8. > > the best way to illustrate whatever I try to... well, er, try,
  9. > > really :)
  10. > BTW, why would you want to use recursion for this Mines-clone. You 
  11. > could just check the array, could you not?
  12. No, because I have to know which clear squares connect to which. I mean, 
  13. what do you exactly mean with checking the array. AFAIK checking the 
  14. array implies resorting to some form of recursive programming.
  15. (I learned that term from someone who sent me an example once of the 
  16. core of minesweeper, and he spoke of recursive programming.)
  17.  
  18. So, could anyone post me something similar?
  19.  
  20. Flint.
  21.  
  22. "My boy, if ever you are lost at sea, drop right in and think of me."
  23. - J. Heller
  24.  
  25.  
  26.